package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.entity.Chafangjilu;
import com.yl.auth.mapper.ChafangjiluMapper;
import com.yl.auth.model.vo.ChaFangVo;
import com.yl.auth.service.ChafangjiluService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author L
 * @since 2023-07-19
 */
@Service
public class ChafangjiluServiceImpl extends ServiceImpl<ChafangjiluMapper, Chafangjilu> implements ChafangjiluService {
    @Resource
    private ChafangjiluMapper chafangjiluMapper;

    @Override
    public Page<ChaFangVo> getChangFang(Page<ChaFangVo> page1, String name, String chuangwei, Date jiluTime) {
        return chafangjiluMapper.getChangFang(page1,name,chuangwei,jiluTime);
    }

    @Override
    public ChaFangVo getLaoren(Integer id) {
        return chafangjiluMapper.getLaoren(id);
    }

    @Override
    public ChaFangVo getLaorenshenti(Integer id) {
        return chafangjiluMapper.getLaorenshenti(id);
    }

    @Override
    public ChaFangVo getLaorenshengming(Integer id) {
        return chafangjiluMapper.getLaorenshengming(id);
    }
}
